/*
 * @(#)Diary.java 2020年4月1日 下午5:02:36
 * Copyright 2020 zmr, Inc. All rights reserved. 
 * PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 */
package com.wind.domain;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Id;

import com.fasterxml.jackson.annotation.JsonFormat;

import lombok.Data;
import lombok.experimental.Accessors;
import tk.mybatis.mapper.annotation.KeySql;

/**
 * <p>File：Diary.java</p>
 * <p>Title: </p>
 * <p>Description:</p>
 * <p>Copyright: Copyright (c) 2020 2020年4月1日 下午5:02:36</p>
 * <p>Company: zmrit.com </p>
 * @author zmr
 * @version 1.0
 */
@Data
@Accessors(chain = true)
public class Diary implements Serializable
{
    //
    private static final long serialVersionUID = 2626898124508961595L;

    @Id
    @KeySql(useGeneratedKeys = true)
    private Integer           id;

    private Integer           cate;

    private String            weather;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date              date;

    private String            content;

    private Integer           status;
}
